// 引入模块
const joi = require('@hapi/joi')


//定义验证信息
const username = joi.string().alphanum().min(3).max(10).required()

const password = joi.string().pattern(/^[\S]{3,12}$/)


module.exports = {
    reg_login_schema: {
        body: {
            username,
            password
        }
    }
}